package com.zyb.ext.mybatis.mapper;

import com.zyb.ext.mybatis.annotate.ExtInsert;
import com.zyb.ext.mybatis.annotate.ExtParam;
import com.zyb.ext.mybatis.annotate.ExtSelect;

public interface MyMapper {

    @ExtInsert("insert into t_users(`name`,`age`) values(#{name},#{age})")
    String insertUser(@ExtParam("age") Integer age, @ExtParam("name") String name);

    @ExtSelect("select * from t_users where `name` = #{name} and age = #{age}")
    String select(@ExtParam("name") String name, @ExtParam("age") Integer age);
}
